package pack1;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
/*
enum s
{U(2),G(3)
	private int i;
s(final int i)
{
	this.i=i;
	}
}
*/
public class dateinc {
public static void main(String[] args) {
	Calendar calendar = new GregorianCalendar(2009, Calendar.JANUARY, 1);

	// Get the current date representation of the calendar.
	Date startDate = calendar.getTime();

	// Increment the calendar's date by 1 day.
	//calendar.add(Calendar.DAY_OF_MONTH, 1);
	calendar.add(calendar.DAY_OF_MONTH,39);
	// Get the current date representation of the calendar.
	Date endDate = calendar.getTime();
//int s1=endDate.getMonth();
//int m=endDate.getDate();

	System.out.println("start date  = "+startDate);
	System.out.println("end date=  "+endDate);
	String  fg= endDate.toString();
	System.out.println(startDate.getMonth());
	System.out.println(Calendar.JANUARY);
	
}
}
